package com.mimiwang.article.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author huangqicai
 * @email 1355518552@qq.com
 * @date 2022-10-07 15:31:26
 */
@Data
@TableName("article_info")
public class ArticleInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Long articleId;
	/**
	 * 
	 */
	private Long userId;
	/**
	 * 
	 */
	private String title;
	/**
	 * 
	 */
	private String content;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Integer viewCount;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Integer isTop;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Integer isPublish;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date gmtCreate;
	/**
	 * 
	 */
	private Date gmtPublish;
	/**
	 * 
	 */
	private Date gmtModified;
	/**
	 * 
	 */
	private String icon;
	/**
	 * mybatisplus乐观锁字段
	 */
	@Version
	private Integer version;
	/**
	 * 1代表删除，0代表未删除
	 */
	@TableLogic(value = "0",delval = "1")
//	@TableField(value = "deleted")
	private Integer deleted;

}
